/*Copyright 2014 Rajesh Putta http://www.codesnippets4all.com

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
* 
*/


package com.codesnippets4all.jthunder.core.config.handlers;

import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;

/*
 * @author Rajesh Putta
 */
public class AutomationConfig implements Serializable {

	private static final long serialVersionUID = -6517218417186343878L;

	private PluginsConfig pluginsConfig;
	
	private ListenersConfig listenersConfig;
	
	private ExceptionMapperConfig exceptionMappersConfig;
	
	private Map<String, LifeCycleConfig> lifeCycleConfig = new LinkedHashMap<String, LifeCycleConfig>();
	
	public void addLifeCycleConfig(LifeCycleConfig lifeCycle)
	{
		lifeCycleConfig.put(lifeCycle.getName(), lifeCycle);
	}
	
	public Map<String, LifeCycleConfig> getLifeCycleConfig()
	{
		return this.lifeCycleConfig;
	}

	public PluginsConfig getPluginsConfig() {
		return pluginsConfig;
	}

	public void setPluginsConfig(PluginsConfig pluginsConfig) {
		this.pluginsConfig = pluginsConfig;
	}

	public ListenersConfig getListenersConfig() {
		return listenersConfig;
	}

	public void setListenersConfig(ListenersConfig listenersConfig) {
		this.listenersConfig = listenersConfig;
	}

	public ExceptionMapperConfig getExceptionMappersConfig() {
		return exceptionMappersConfig;
	}

	public void setExceptionMappersConfig(
			ExceptionMapperConfig exceptionMappersConfig) {
		this.exceptionMappersConfig = exceptionMappersConfig;
	}
}
